package br.com.mkmts.view.controller;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;

import br.com.mkmts.model.constants.StatusConsultoraEnum;
import br.com.mkmts.view.constants.GenderEnum;

public  abstract class AbstractModelBean {

	 public abstract String iniciarTela();
	 public abstract void limparCamposFiltro();
	 public abstract String pesquisarFiltro();
	 
	 public ScheduleController getScheduleBean() {
		return (ScheduleController) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("scheduleController");
	}
	 
	public List<SelectItem> getComboUf(){
		List<SelectItem> retorno = new ArrayList<SelectItem>();
		retorno.add(new SelectItem("AC"));
		retorno.add(new SelectItem("AL"));
		retorno.add(new SelectItem("AM"));
		retorno.add(new SelectItem("AP"));
		retorno.add(new SelectItem("BA"));
		retorno.add(new SelectItem("CE"));
		retorno.add(new SelectItem("DF"));
		retorno.add(new SelectItem("ES"));
		retorno.add(new SelectItem("GO"));
		retorno.add(new SelectItem("MA"));
		retorno.add(new SelectItem("MG"));
		retorno.add(new SelectItem("MS"));
		retorno.add(new SelectItem("MT"));
		retorno.add(new SelectItem("PA"));
		retorno.add(new SelectItem("PB"));
		retorno.add(new SelectItem("PE"));
		retorno.add(new SelectItem("PI"));
		retorno.add(new SelectItem("PR"));
		retorno.add(new SelectItem("RJ"));
		retorno.add(new SelectItem("RN"));
		retorno.add(new SelectItem("RO"));
		retorno.add(new SelectItem("RR"));
		retorno.add(new SelectItem("RS"));
		retorno.add(new SelectItem("SC"));
		retorno.add(new SelectItem("SE"));
		retorno.add(new SelectItem("SP"));
		retorno.add(new SelectItem("TO"));
		return retorno;
	}

	public List<GenderEnum> getComboSexualidade(){
		return new ArrayList<GenderEnum>(Arrays.asList(GenderEnum.values()));
	}

	public List<StatusConsultoraEnum> getStatusConsultora(){
		return new ArrayList<StatusConsultoraEnum>(Arrays.asList(StatusConsultoraEnum.values()));
	}	 
	
}
